//
//  MainViewController.h
//  iFlick1.4
//
//  Created by vhly on 10-8-27.
//  Copyright 2010 xhzhang. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "Document.h"

#import "BrowserViewController_iPhone.h"
#import "SettingViewController.h"


@interface MainViewController : UIViewController <SettingViewControllerDelegate,UITableViewDelegate,UITableViewDataSource,BrowserDelegate, UIAlertViewDelegate, UIImagePickerControllerDelegate,UINavigationControllerDelegate>{
	NSString *strFrob;
	UIBarButtonItem *btnAuth;
	UIAlertView *alertView;
	
	UIImagePickerController *pickerController;
	
	UITableView *mytableView;
	
	UIBarButtonItem *btnCamera;
}

@property (nonatomic, retain) NSString *strFrob;
@property (nonatomic, retain) UIBarButtonItem *btnAuth;
@property (nonatomic, retain) UIAlertView *alertView;
@property (nonatomic, retain) IBOutlet UITableView *mytableView;
@property (nonatomic, retain) IBOutlet UIBarButtonItem *btnCamera;

- (void)authCheck:(id)sender;

- (IBAction)addPhotoFromLibrary:(id)sender;

- (IBAction)addPhotoFromCamera:(id)sender;

- (IBAction)uploadPhotos:(id)sender;

- (IBAction)showSettings:(id)sender;

- (void)getFrobImpl;

- (void)showBrowser:(NSString *)url;

- (void)refreshAuthButton;

- (void)refreshList;

@end
